package com.qf.common.domain.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.common.domain.admin.dos.SysRole;
import com.qf.common.domain.admin.vo.OptionsVO;
import com.qf.common.domain.admin.vo.RolePageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author sin
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2024-10-12 16:52:40
* @Entity com.qf.admin.domain.entity.system.SysRole
*/
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> getSelectedRolesByMenuId(@Param(value = "menuId")Long menuId);

    List<OptionsVO> getAllRoleList();

    List<RolePageVO> getRolePage(String name, Integer status, String code);

    List<Long> getMenuByRoleId(Long roleId);
}




